package com.awanp3.nimbus.tool.asset.domain.bo;

import com.awanp3.nimbus.common.core.validate.AddGroup;
import com.awanp3.nimbus.common.core.validate.EditGroup;
import com.awanp3.nimbus.tool.asset.domain.Host;
import com.awanp3.nimbus.common.mybatis.core.domain.BaseEntity;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 主机业务对象 host
 *
 * @author 20014170
 * @date 2025-08-05
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = Host.class, reverseConvertGenerate = false)
public class HostBo extends BaseEntity {

    /**
     * id
     */
    private Long id;

    /**
     * 主机类型
     */
    @NotBlank(message = "主机类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String types;

    /**
     * 系统类型
     */
    @NotBlank(message = "系统类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String osType;

    /**
     * 系统架构
     */
    @NotBlank(message = "系统架构不能为空", groups = { AddGroup.class, EditGroup.class })
    private String archType;

    /**
     * 主机名称
     */
    @NotBlank(message = "主机名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 主机编码
     */
    @NotBlank(message = "主机编码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String code;

    /**
     * 主机地址
     */
    @NotBlank(message = "主机地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String address;

    /**
     * 主机描述
     */
    @NotBlank(message = "主机描述不能为空", groups = { AddGroup.class, EditGroup.class })
    private String description;

    /**
     * 主机状态（0正常 1停用）
     */
    @NotBlank(message = "主机状态（0正常 1停用）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String status;


}
